#include <stdio.h>

int main()
{
    int C;
    int F;
    scanf("%d",&F);
    C = 5 * (F - 32) / 9;
    printf("Celsius = %d\n",C);

    return 0;
}